<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a >首页推荐视频列表</a></li>
			<li ><a href="{:U('Video/top_rec_add')}">添加首页推荐</a></li>

		</ul>
		<form method="post" class="js-ajax-form" >
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>id</th>
						<th>封面</th>
						<th>视频名称</th>
						<th>推荐位置</th>
						<th>更新时间</th>

						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td>{$vo['id']}</td>
						<td><a href="{$vo['thumb2']}" target="_blank"><img width="30" height="30" src="{$vo['thumb2']}" /></td>
						<td>{$vo['name']}</td>
						<td>{$vo['type_txt']}</td>
						<td>{$vo.uptime|date="Y-m-d H:i:s",###}</td>
						
						<td align="center">	
							<a href="{:U('Video/top_rec_edit',array('id'=>$vo['id']))}" >编辑</a> |
							<a href="{:U('Video/top_rec_del',array('id'=>$vo['id']))}" >删除</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>

		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>